package com.kingwang.training.designpattern.adapter.bo.instance;

import com.kingwang.training.designpattern.adapter.bo.ChnVoltage;
import com.kingwang.training.designpattern.adapter.bo.UsaVoltage;

public class PowerAdapter implements UsaVoltage {
    private ChnVoltage chnVoltage;

    public PowerAdapter(ChnVoltage voltage) {
        this.chnVoltage = voltage;
    }

    @Override
    public void plug110() {
        // 转换逻辑
        this.chnVoltage.plug220();
    }
}
